package cn.school.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.school.common.annotation.Excel;
import cn.school.common.core.domain.BaseEntity;

/**
 * 店铺信息对象 bi_shop
 *
 * @author ruoyi
 * @date 2023-12-25
 */
@Data
public class BiShop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openid;

    /** 登录密码 */
    @Excel(name = "登录密码")
    private String password;

    /** 店铺手机号 */
    @Excel(name = "店铺手机号")
    private String phone;

    /** 推荐店铺id */
    @Excel(name = "推荐店铺id")
    private String recommendShopId;

    /** 店铺名字 */
    @Excel(name = "店铺名字")
    private String shopName;

    /** 可提现金额 */
    @Excel(name = "可提现金额")
    private BigDecimal shopCashFee;

    /** 累计总金额 */
    @Excel(name = "累计总金额")
    private BigDecimal shopTotalFee;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 分佣比例，百分之多少，不能大于100 */
    @Excel(name = "分佣比例，百分之多少，不能大于100")
    private BigDecimal percentage;

    /** 开通时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开通时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date passTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("openid", getOpenid())
                .append("password", getPassword())
                .append("phone", getPhone())
                .append("recommendShopId", getRecommendShopId())
                .append("shopName", getShopName())
                .append("shopCashFee", getShopCashFee())
                .append("shopTotalFee", getShopTotalFee())
                .append("status", getStatus())
                .append("percentage", getPercentage())
                .append("passTime", getPassTime())
                .toString();
    }
}
